Transforms rhythm strings into symbol pattern and binds the result to output-atom. Each row is a string of " " and "-" characters. The string length and the number of rows must be equal. The size of the figure is not restricted, but the output pattern length follows the equation rows^2. The output is calculated by summing y0 column and x0 row, then y1 and x1... until no further columns and rows are left.
(gen-rhythm bass
; y 01234567
" -- " ; x 0
" - - " ; x 1
" - - " ; x 2
"- - - -" ; x 3
" - -- - " ; x 4
" - - " ; x 5
" -- " ; x 6
" -- " ; x 7
)
bass
--> (= = = a a = = = = = a = a a = = = a = a = a a ...)